import axios from 'axios';
import global from '../Global.js'

// 基础方法进行封装
function getApiBasic(url, postdata) {
    return axios.post(url, postdata).then(function (data) {
        const json = data.data;
        return json
    }, function (response) {
        console.info(response);
    })
}

// 调用的api改写成方法
export function worldDetail(postdata) {
    const url = headapi + 'worldDetail';
    return getApiBasic(url, postdata);
}

export function GenVerifyPic(postdata) {
    const url = headapi + 'GenVerifyPic';
    return getApiBasic(url, postdata);
}

export function ManagerSelfQuery(postdata) {
    const url = headapi + 'GenVerifyPic';
    return getApiBasic(url, postdata);
}


export function SignIn(postdata) {
    const url = headapi + 'SignIn';
    return getApiBasic(url, postdata);
}

export function editbasicinfo(postdata) {
    const url = headapi + 'editbasicinfo';
    return getApiBasic(url, postdata);
}

export function modPwd(postdata) {
    const url = headapi + 'modPwd';
    return getApiBasic(url, postdata);
}

export function logout(postdata) {
    const url = headapi + 'logout';
    return getApiBasic(url, postdata);
}

export function testSelect(postdata) {
    const url = headapi + 'testSelect';
    return getApiBasic(url, postdata);
}

export function VipUserSimpleQuery(postdata) {
    const url = headapi + 'VipUserSimpleQuery';
    return getApiBasic(url, postdata);
}

export function ShopManagerListQuery(postdata) {
    const url = headapi + 'ShopManagerListQuery';
    return getApiBasic(url, postdata);
}


export function TestClassPreFinishListQuery(postdata) {
    const url = headapi + 'TestClassPreFinishListQuery';
    return getApiBasic(url, postdata);
}






